/**
 * 
 */
package org.zgstudio.ddlchecker;

/**
 * @author zhguo
 * 
 */
public interface LinkCheckTaskPool {
    LinkCheckTask getNextTask();

    /*
     * get next task from the pool.
     * 
     * @param who who is requesting next task. The parameter is mainly used to
     * improve performance when multiple threads are trying to access the same
     * poo;.
     */
    LinkCheckTask getNextTask(int who);
    
    void addLinkCheckTask(LinkCheckTask task);
    
    void build(Link links[]) throws TooManyURLsInTaskException ;
}
